<%@ include file="/WEB-INF/include/base.jsp" %>
<%@ page isELIgnored="false" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><bean:message key="title.application"/></title>			
		<link rel="stylesheet" type="text/css" href="./common/css/master.css">
	</head>
	<body>		
	<%@ include file="/WEB-INF/include/base/variables.jsp" %>	
	<table id="body" border="0">
		<tr><td id="header">This is header</td></tr>
		<tr>
			<td id="subheader">
				<%@ include file="/WEB-INF/include/components/mainlinks.jsp" %>
			</td>
		</tr>
		<%@ include file="/WEB-INF/include/components/mainnav.jsp" %>
		<tr>
			<td id="content">
				<table width="60%">					
					<tr>						
						<td width="20%" valign="top" style="padding-left:10px;" >
							&nbsp;					
						</td>
						<td>
							<table width="100%">
								<tr>
									<td bgcolor="#EEEEEE">
									<html:form action="/login.do">
										<table id="login" class="standard">										
											<tr>
												<td class="heading" colspan="3">
													<div class="t_heading_ul">
														<div class="t_heading_ur">
															<h4><bean:message key="heading.login"/></h4>&nbsp;
														</div>
													</div>													
												</td>
											</tr>
											<tr>
												<td colspan="3" style="padding:10px;">
													&nbsp;
												</td>
											</tr>
											<html:messages id="errors" message="true" property="invalidLogin">
											<tr>
												<td class="error" colspan="3">
													<div class="m_ul">
														<div class="m_ur">
															<div class="m_ll">
																<div class="m_lr">																	
																	<c:out value="${errors }"/>
																</div>														
															</div>
														</div>
													</div>
												</td>
											</tr>
											</html:messages>
											<html:messages id="errors" message="true" property="userDatabase">
											<tr>
												<td class="error" colspan="3">
													<div class="m_ul">
														<div class="m_ur">
															<div class="m_ll">
																<div class="m_lr">
																	<c:out value="${errors }"/>
																</div>														
															</div>
														</div>
													</div>
												</td>
											</tr>
											</html:messages>											
											<tr>
												<td class="label"><bean:message key="label.emailAddress"/></td>
												<td class="data"><html:text property="emailAddress" value="test1@email.com"/></td>
												<td class="error">
													<html:messages id="errors" message="true" property="emailAddress">
														<c:out value="${errors }"/>
													</html:messages>&nbsp;
												</td>
											</tr>
											<tr>
												<td class="label"><bean:message key="label.password"/></td>
												<td class="data"><html:password property="password" value="password"/></td>
												<td class="error">
													<html:messages id="errors" message="true" property="password">
														<c:out value="${errors }"/>
													</html:messages>&nbsp;
												</td>
											</tr>
											<tr>
												<td>&nbsp;</td>
												<td class="cmd">
													<html:submit value="Cancel"/>
													<html:submit value="Log in"/>
												</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td colspan="3">
													
												</td>
											</tr>
										</table>				
										</html:form>
									</td>
								</tr>
							</table>
							<div class="c1_ll">
								<div class="c1_lr">
									&nbsp;
								</div>
							</div>
						</td>
					</tr>
				</table>				
			</td>
		</tr>
		<tr><td id="footer">This is footer</td></tr>
	</table>
	</body>
</html>